/*
 * uart_data_transmission.h
 *
 *  Created on: Jun 27, 2025
 *      Author: �����з�-WD
 */

#ifndef INC_UART_DATA_TRANSMISSION_H_
#define INC_UART_DATA_TRANSMISSION_H_
// ���ݽṹ���ڴ洢�������
typedef struct {
    int particleConcentration;
    int temperature;
    int humidity;
    int isValid;  // ��ǽ����Ƿ�ɹ�
} SensorData;

// �������������Ӧ
uint8_t sendCommandAndReceiveResponse(char* command, char* response, uint16_t maxLength,int delay_tm);
// �������յ�������
uint8_t parseResponse(const char* response, SensorData* data);

void get_result_s300(SensorData* sensorData);
void show_tmps(SensorData* sensorData,uint8_t if_need_chk,I2C_HandleTypeDef *hi2c);


#endif /* INC_UART_DATA_TRANSMISSION_H_ */
